# 1.求1-100的和
theSum = 0
for i in range(1, 101):
    theSum += i
print(theSum)

# 2.求300-400的和
theSum = 0
for i in range(300, 401):
    theSum += i
print(theSum)

# 3.求1-1000的和
theSum = 0
for i in range(1, 1001):
    theSum += i
print(theSum)
